<template>
	<div class="mi-canvas-tools-item">
		<Tooltip :content="$t('message.select')" :placement="G.mobile ? 'right' : 'top'">
            <span class="mi-canvas-tools-icon" :class="active === 'selection' ? 'active' : null">
                <i class="iconfont icon-select" :style="theme=='dark'?'color: #fff':''" @click="toolSelect('selection')"></i>
            </span>
		</Tooltip>
	</div>
</template>

<script lang="ts">
	import {Component, Emit, Prop, Vue} from 'vue-property-decorator';
	import {Getter} from 'vuex-class';

	@Component
	export default class SelectionComponent extends Vue {
		@Prop() active: any;
		@Getter('getTheme', {}) theme: any;

		@Emit() toolSelect(name: string) {
		}
	}
</script>
